.product-table {
  width: 100%;
  min-width: 1200px;
  table-layout: auto;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0 16px;
}

.product-table th, .product-table td {
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #e0e0e0;
  line-height: 1.8;
}

.product-table th {
  background: #f5f5f5;
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px;
  min-width: 350px;
  max-width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 22px;
}

.modal-content label {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 2px;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
  box-sizing: border-box;
}

.modal-content textarea {
  min-height: 48px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0 0;
}

.pagination-bar .btn {
  min-width: 36px;
  padding: 6px 12px;
  font-size: 15px;
}

.status-pending {
  color: #e74c3c;
  font-weight: bold;
}
.status-approved {
  color: #27ae60;
  font-weight: bold;
}

.image-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.image-preview-large {
  max-width: 60vw;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
  background: #fff;
  padding: 8px;
}
.image-preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 2100;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}
.image-preview-arrow.left {
  left: calc(34% - 180px);
}
.image-preview-arrow.right {
  right: calc(34% - 180px);
}
.image-preview-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.image-preview-arrow:hover:not(:disabled) {
  background: #27ae60;
  color: #fff;
  box-shadow: 0 4px 16px rgba(39,174,96,0.18);
}
.image-preview-download {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2100;
  transition: background 0.2s;
}
.image-preview-download:hover {
  background: #219150;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-content label {
  font-size: 15px;
  margin-bottom: 2px;
  color: #222;
  font-weight: 500;
}
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 2px;
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fafbfc;
  transition: border 0.2s;
}
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: #27ae60;
  outline: none;
  background: #fff;
}
.modal-content textarea {
  min-height: 56px;
  resize: vertical;
}
.form-error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 2px;
  margin-bottom: 2px;
  line-height: 1.2;
}
.modal-content .btn {
  min-width: 80px;
  padding: 8px 0;
  border-radius: 5px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  background: #e0e0e0;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-content .btn.btn-primary {
  background: #27ae60;
  color: #fff;
}
.modal-content .btn:disabled {
  background: #bdbdbd;
  color: #fff;
  cursor: not-allowed;
}
.modal-content .btn.btn-primary:active {
  background: #219150;
}
.modal-content .btn:not(:last-child) {
  margin-right: 8px;
}
.modal-content img {
  display: block;
  margin: 8px 0 0 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 120px;
  max-height: 120px;
}
.modal-content .modal-actions {
  margin-top: 18px;
  gap: 10px;
}

.modal-content select,
select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  background: #fafbfc;
  color: #222;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 2px;
}
.modal-content select:focus,
select:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 2px rgba(39,174,96,0.12);
  background: #fff;
}
.modal-content select:hover,
select:hover {
  border-color: #b2dfdb;
}
/* 下拉箭头美化（仅部分浏览器支持） */
.modal-content select,
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='16' height='16' viewBox='0 0 16 16' fill='gray' xmlns='http://www.w3.org/2000/svg'><path d='M4 6l4 4 4-4' stroke='gray' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.category-select {
  width: 160px;
  min-width: 120px;
  max-width: 200px;
  /* 移除max-height和overflow样式，保持原生下拉 */
}
.category-select option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 移除滚动条美化 */
